
#ifndef MIDEA_BASE_SCROLL_CELL
#define MIDEA_BASE_SCROLL_CELL
#ifdef __cplusplus
extern "C"
{
#endif
// 适用于list_view collection_view 的cell
// 增加 ui_type UI样式
#include "lvgl.h"

    typedef struct
    {
        lv_obj_t obj;
        uint8_t ui_type; // UI样式
    } midea_base_scroll_cell;

    extern const lv_obj_class_t midea_base_scroll_cell_class;

    lv_obj_t *midea_base_scroll_cell_create(lv_obj_t *parent);

    void midea_base_scroll_cell_set_ui_type(lv_obj_t *cell, uint8_t ui_type);

    uint8_t midea_base_scroll_cell_get_ui_type(lv_obj_t *cell);

    //@brief 比较ui_type是否一致
    //@param cell 目标cell
    //@param ui_type 对比的ui_type
    //@return true or false
    bool midea_base_scroll_cell_is_same_ui_type(lv_obj_t *cell, uint8_t ui_type);

#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif
